<%@ Page language="c#" masterpagefile="~/masterpage.master" Inherits="Microsoft.Samples.SqlServer.CheckOut" CodeFile="CheckOut.aspx.cs"%>

<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="server">
<!-- =====================================================================

    File:      CheckOut.aspx for Adventure Works Cycles Storefront Sample
    Summary:   Allows the user to review the shopping cart, and places an order if the user presses the submit button.
    Date:	     June 16, 2003

    =====================================================================

    This file is part of the Microsoft SQL Server Code Samples.
    Copyright (C) Microsoft Corporation.  All rights reserved.

	This source code is intended only as a supplement to Microsoft
	Development Tools and/or on-line documentation.  See these other
	materials for detailed information regarding Microsoft code samples.

	THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
	KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
	IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
	PARTICULAR PURPOSE.

	======================================================= -->
<table cellspacing="0" cellpadding="0" width="100%" border="0">
    <tr>
	    <td class="ContentHead">
		    <img align="left" height="32" width="60" src="images/1x1.gif" /><asp:Label ID="Header" runat="server">Review and Submit Your Order</asp:Label>
		    <br />
	    </td>
    </tr>
</table>
<img align="left" height="1" width="92" src="images/1x1.gif" />
<table cellspacing="0" cellpadding="0" width="550" border="0">
    <tr valign="top">
	    <td width="100%" class="Normal">
		    <br />
		    <asp:Label ID="Message" runat="server">Please check all the information below to be sure it's correct.</asp:Label>
		    <br />
		    <br />
		    <asp:DataGrid id="MyDataGrid" width="90%" BorderColor="black" GridLines="Vertical" cellpadding="4"
			    cellspacing="0"  Font-Names="Verdana" Font-Size="8pt" ShowFooter="true" HeaderStyle-CssClass="CartListHead"
			    FooterStyle-CssClass="cartlistfooter" ItemStyle-CssClass="CartListItem" AlternatingItemStyle-CssClass="CartListItemAlt"
			    AutoGenerateColumns="false" runat="server">
			    <Columns>
				    <asp:BoundColumn HeaderText="Product Name" DataField="Name" />
				    <asp:BoundColumn HeaderText="Model Number" DataField="ProductNumber" />
				    <asp:BoundColumn HeaderText="Quantity" DataField="Quantity" />
				    <asp:BoundColumn HeaderText="Price" DataField="ListPrice" DataFormatString="{0:c}" />
				    <asp:BoundColumn HeaderText="Subtotal" DataField="ExtendedAmount" DataFormatString="{0:c}" />
			    </Columns>
		    </asp:DataGrid>
		    <br />
		    <br />
		    <b>Shipping method: 
                <asp:dropdownlist id="ShippingDropDownList" runat="server" onselectedindexchanged="ShippingDropDownList_SelectedIndexChanged">
                </asp:dropdownlist> </b>
    		
		    <br />
		    <br />
		    <b>Total: </b>
		    <asp:Label ID="TotalLabel" runat="server" />
		    <br />
		    <br />
		    <br />
		    <br />
	    </td>
    </tr>
</table>
<img align="left" height="1" width="92" src="images/1x1.gif" />
<table cellspacing="0" cellpadding="0" width="550" border="0">
    <tr>
	    <td>
			    <span class="SubContentHead">Bill To Address</span>
	    </td>
    </tr>
    <tr valign="baseline">
	    <td>
		    <span class="NormalBold">Address Line 1</span>
	    </td>
	    <td>
		    <asp:textbox id="BillToAddressLine1TextBox" runat="Server" ontextchanged="BillingAddressTextBox_TextChanged" enableviewstate="true" cssclass="Normal" width="200px"></asp:textbox>
	    </td>
    </tr>
    <tr valign="baseline">
	    <td>
		    <span class="NormalBold">Address Line 2</span>
	    </td>
	    <td>
		    <asp:textbox id="BillToAddressLine2TextBox" runat="Server" ontextchanged="BillingAddressTextBox_TextChanged" enableviewstate="true" cssclass="Normal" width="200px"></asp:textbox>
	    </td>
    </tr>									    
    <tr valign="baseline">
	    <td>
		    <span class="NormalBold">City</span>
	    </td>
	    <td>
		    <asp:textbox id="BillToAddressCityTextBox" runat="Server" ontextchanged="BillingAddressTextBox_TextChanged" enableviewstate="true" cssclass="Normal"></asp:textbox>
	    </td>
    </tr>
    <tr valign="baseline">
	    <td>
			    <span class="NormalBold">State / Province</span>
	    </td>
	    <td>
		    <asp:dropdownlist id="BillToAddressStateProvinceDropDownList" runat="Server" 
			    onselectedindexchanged="BillingAddressDropDownList_SelectedIndexChanged" 
			    enableviewstate="true" cssclass="Normal"/>
	    </td>
    </tr>
    <tr valign="baseline">
	    <td>
			    <span class="NormalBold">Postal Code</span>
	    </td>
	    <td>
			    <asp:textbox id="BillToAddressPostalCodeTextBox" runat="Server" ontextchanged="BillingAddressTextBox_TextChanged" enableviewstate="true" cssclass="Normal"></asp:textbox>
			    <br />
			    <br />
	    </td>
    </tr>
    <tr valign="baseline">
		    <td>
		    <span class="NormalBold">Ship address is billing address</span>
		    </td>
		    <td>
			    <asp:checkbox id="ShipSameAsBillCheckBox" oncheckedchanged="ShipSameAsBillCheckBox_CheckedChanged" runat="Server" enableviewstate="true" autopostback="true" cssclass="Normal" />
			    <br />
			    <br />
		    </td>
    </tr>
    <tr valign="baseline">
	    <td>
		    <span class="SubContentHead">Ship To Address</span>
	    </td>
    </tr>
    <tr valign="baseline">
	    <td>
		    <span class="NormalBold">Address Line 1</span>
	    </td>
	    <td>
		    <asp:textbox id="ShipToAddressLine1TextBox" runat="Server" cssclass="Normal" enabled="false" width="200px"></asp:textbox>
	    </td>
    </tr>
    <tr valign="baseline">
	    <td>
		    <span class="NormalBold">Address Line 2</span>
	    </td>
	    <td>
		    <asp:textbox id="ShipToAddressLine2TextBox" runat="Server" cssclass="Normal" enabled="false" width="200px"></asp:textbox>
	    </td>
    </tr>									    
    <tr valign="baseline">
	    <td>
		    <span class="NormalBold">City</span>
	    </td>
	    <td>
		    <asp:textbox id="ShipToAddressCityTextBox" runat="Server" cssclass="Normal" enabled="false"></asp:textbox>
	    </td>
    </tr>
    <tr valign="baseline">
	    <td>
			    <span class="NormalBold">State / Province</span>
	    </td>
	    <td>
            <asp:dropdownlist id="ShipToAddressStateProvinceDropDownList" runat="Server" 
				    cssclass="Normal"/>									        
	    </td>
    </tr>
    <tr valign="baseline">
	    <td>
			    <span class="NormalBold">Postal Code</span>
	    </td>
	    <td>
			    <asp:textbox id="ShipToAddressPostalCodeTextBox" runat="Server" cssclass="Normal" enabled="false"></asp:textbox>
			    <br />
			    <br />
	    </td>
    </tr>
    <tr>
	    <td>
		    <p>
			    <asp:ImageButton id="SubmitButton" ImageURL="images/submit.gif" runat="server" />
		    </p>
	    </td>
    </tr>
</table>
</asp:content>
